home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / cqa.zip / TLINKAPP.BCP < prev    next >
Text File  |  1991-04-01  |  1KB  |  31 lines

  1. QUESTION:  What is the proper command line for linking a Windows
  2.            application?
  3.  
  4. ANSWER:    The syntax for tlink is:
  5.  
  6.              tlink objfiles,exefile,mapfile,libfiles,deffile
  7.  
  8.            You must always use the /Tw option to create a Windows exe
  9.            or DLL.  Use /Twe or /Twd to specifically create a Windows
  10.            exe or DLL ] respectively. The last two options override
  11.            specifications in the DEF file.
  12.  
  13.            There is a specific startup module to use with Windows exe's;
  14.            it is c0wx.obj.  For DLL's it is c0dx.obj.
  15.  
  16.            The required libraries are: import.lib, cwinx.lib,  mathx.lib
  17.            and cx.lib.  For DLL's the Windows library for small and
  18.            compact is cwinc.lib and for medium and large is cwinl.lib.
  19.            The last three libraries, cwinx.lib, mathx.lib, and cx.lib
  20.            must always be in this exact order.
  21.  
  22.            NOTE: The libraries, emu.lib and fp87.lib will NEVER be used
  23.            in a Windows program.  BC++ will take care of the floating-
  24.            point math automatically.
  25.  
  26.            You will then have to run the Resource Compiler to fully
  27.            create a Windows exe.
  28.  
  29.            For more info, consult pages 115-130 in the User's Guide on
  30.            linking for Windows)
  31.